﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace NhWeather
{
    [Serializable]
    public class Options
    {
        private int _comIndex;

        public int ComIndex
        {
            get { return _comIndex; }
            set
            {
                _comIndex = value;
                OnPropertyChanged(nameof(ComIndex));
            }
        }


        public event PropertyChangedEventHandler PropertyChanged;
        private void OnPropertyChanged(string propertyName)
        {
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
        }

    }
}
